public class Test {

    public static void main3(String[] args) {

        Integer a = 127;
        Integer b = 127;

        Integer c = 128;
        Integer d = 128;
        System.out.println(a == b);//true
        System.out.println(b == c);//false
    }
    public static void main2(String[] args) {
        Integer a = 10;
        int i = a.intValue();
    }
    public static void main1(String[] args) {
        int a = 10;
        Integer i = a;//自动装箱
        Integer ii = new Integer(a);//显示（很明显）装箱（类似于显示类型转换（强制类型转换））

    }
}
